#ifndef SERVE_H
#define SERVE_H

#include <QWidget>
#include<QTcpServer>
#include<QTcpSocket>
#include<QString>


QT_BEGIN_NAMESPACE
namespace Ui {
class serve;
}
QT_END_NAMESPACE

class serve : public QWidget
{
    Q_OBJECT

public:
    serve(QWidget *parent = nullptr);
    ~serve();
private slots:
    void newClientHandler();


private:
    Ui::serve *ui;
    QTcpServer *server;
};
#endif // SERVE_H
